# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lxterminal
pkgver=0.3.2
pkgrel=1
pkgdesc="Desktop-independent VTE-based terminal emulator"
url="https://lxde.org/"
arch="all"
license="GPL-2.0-or-later"
makedepends="gtk+3.0-dev intltool vte3-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="https://downloads.sourceforge.net/lxde/lxterminal-$pkgver.tar.xz"

# secfixes:
#   0.3.0-r1:
#     - CVE-2016-10369

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--enable-gtk3
	make
}

check() {
	make -C src check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="0711d6eeed1f7e301fd24e0d5f750a48f29cc10c7cd40bcc1de57cceddfe4cb15718e9fb812da975faff24aed99cdd3978cb5f29838f47e276fce47f01577119  lxterminal-0.3.2.tar.xz"
